﻿using FluentNHibernate.Mapping;
using Messenia.Data.Models;

namespace Messenia.Data.Hibernate.Map {
   public class LogMap : ClassMap<Log> {
        public LogMap() {
            Table("logs");
            Id(x => x.LogId , "Logs_ID");
            Map(x => x.Message );
            Map(x => x.Date );
            Map(x => x.Type );
            References(x => x.Creator );
            
        }
    }
}
